<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/16
 * Time: 10:24
 */
namespace app\admin\validate;

use think\Validate;

class Smstype extends Validate{
    protected $rule = [
        'name'      => 'require|max:20',
        'status'    => 'in:1,0',
    ];
    protected $message  =   [
        'name.require'      => '短信类型名不能为空',
        'name.max'          => '短信类型名不能超过50个字符',
        'status.in'         => '状态不正确',
    ];
}